Razor Compilation Error

We tried, we really did, but we just can't compile your view.

We're sorry :-(

Graphics courtesy of the awesome Matthew Inman

Details

Error Details

Error compiling template: Views/Export/Officials.cshtml

Errors:
[CS1061] Line: 19 Column: 88 - 'DataModel.Models.Official' enthält keine Definition für 'Country', und es konnte keine Erweiterungsmethode 'Country' gefunden werden, die ein erstes Argument vom Typ 'DataModel.Models.Official' akzeptiert (Fehlt eine Using-Direktive oder ein Assemblyverweis?). (show)
[CS1061] Line: 31 Column: 123 - 'DataModel.Models.Official' enthält keine Definition für 'Country', und es konnte keine Erweiterungsmethode 'Country' gefunden werden, die ein erstes Argument vom Typ 'DataModel.Models.Official' akzeptiert (Fehlt eine Using-Direktive oder ein Assemblyverweis?). (show)

Details:
@using NancyServer.Localization
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<NancyServer.ViewModels.OfficialsViewModel>
@{
Layout = "Views/Shared/_layout.cshtml";
}

<div class="page-header">
<h1><a href="#" onclick="window.history.back(); return false;"><i class="fa fa-arrow-circle-o-left"></i></a> @Translation.OfficialsOf @Model.Competition.Title</h1>
</div>


<div>
<div class="panel panel-default">
<div class="panel-heading">@Translation.Judges</div>
<div class="panel-body">
<ul class="list-group fa-lg">
@foreach (var judge in Model.Judges)
{
<li class="list-group-item">(@judge.Sign) @judge.NiceName / @judge.Country</li>
}
</ul>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">@Translation.Officials</div>
<div class="panel-body">
<ul class="list-grou fa-lg">
@foreach (var official in Model.Officials)
{
<li class="list-group-item">@official.Official.NiceName (@official.Role.RoleLong / @official.Official.Country)</li>
}
</ul>
</div>
</div>
</div>


Compilation Source:
//------------------------------------------------------------------------------
Line 1: // <auto-generated>
Line 2: // Dieser Code wurde von einem Tool generiert.
Line 3: // Laufzeitversion:4.0.30319.42000
Line 4: //
Line 5: // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
Line 6: // der Code erneut generiert wird.
Line 7: // </auto-generated>
Line 8: //------------------------------------------------------------------------------
Line 9:
Line 10: namespace RazorOutput {
Line 11: using Microsoft.CSharp.RuntimeBinder;
Line 12: using System;
Line 13: using System.IO;
Line 14: using DataModel;
Line 15: using DataModel.Models;
Line 16:
Line 17: #line 1 "roo"
Line 18: using NancyServer.Localization;
Line 19:
Line 20: #line default
Line 21: #line hidden
Line 22: using NancyServer.ViewModels;
Line 23:
Line 24:
Line 25: public class RazorView : Nancy.ViewEngines.Razor.NancyRazorViewBase<NancyServer.ViewModels.OfficialsViewModel> {
Line 26:
Line 27: #line hidden
Line 28:
Line 29: public RazorView() {
Line 30: }
Line 31:
Line 32: public override void Execute() {
Line 33: WriteLiteral(" ");
Line 34:
Line 35:
Line 36: #line 3 "roo"
Line 37:
Line 38: Layout = "Views/Shared/_layout.cshtml";
Line 39:
Line 40:
Line 41: #line default
Line 42: #line hidden
Line 43: WriteLiteral(" \r\n\r\n<div");
Line 44:
Line 45: WriteLiteral(" class=\"page-header\"");
Line 46:
Line 47: WriteLiteral(">\r\n <h1><a");
Line 48:
Line 49: WriteLiteral(" href=\"#\"");
Line 50:
Line 51: WriteLiteral(" onclick=\"window.history.back(); return false;\"");
Line 52:
Line 53: WriteLiteral("><i");
Line 54:
Line 55: WriteLiteral(" class=\"fa fa-arrow-circle-o-left\"");
Line 56:
Line 57: WriteLiteral("></i></a> ");
Line 58:
Line 59:
Line 60: #line 8 "roo"
Line 61: Write(Translation.OfficialsOf);
Line 62:
Line 63:
Line 64: #line default
Line 65: #line hidden
Line 66: WriteLiteral(" ");
Line 67:
Line 68:
Line 69: #line 8 "roo"
Line 70: Write(Model.Competition.Title);
Line 71:
Line 72:
Line 73: #line default
Line 74: #line hidden
Line 75: WriteLiteral("</h1>\r\n</div>\r\n\r\n\r\n<div>\r\n <div");
Line 76:
Line 77: WriteLiteral(" class=\"panel panel-default\"");
Line 78:
Line 79: WriteLiteral(">\r\n <div");
Line 80:
Line 81: WriteLiteral(" class=\"panel-heading\"");
Line 82:
Line 83: WriteLiteral(">");
Line 84:
Line 85:
Line 86: #line 14 "roo"
Line 87: Write(Translation.Judges);
Line 88:
Line 89:
Line 90: #line default
Line 91: #line hidden
Line 92: WriteLiteral("</div>\r\n <div");
Line 93:
Line 94: WriteLiteral(" class=\"panel-body\"");
Line 95:
Line 96: WriteLiteral(">\r\n <ul");
Line 97:
Line 98: WriteLiteral(" class=\"list-group fa-lg\"");
Line 99:
Line 100: WriteLiteral(">\r\n");
Line 101:
Line 102:
Line 103: #line 17 "roo"
Line 104:
Line 105:
Line 106: #line default
Line 107: #line hidden
Line 108:
Line 109: #line 17 "roo"
Line 110: foreach (var judge in Model.Judges)
Line 111: {
Line 112:
Line 113:
Line 114: #line default
Line 115: #line hidden
Line 116: WriteLiteral(" <li");
Line 117:
Line 118: WriteLiteral(" class=\"list-group-item\"");
Line 119:
Line 120: WriteLiteral(">(");
Line 121:
Line 122:
Line 123: #line 19 "roo"
Line 124: Write(judge.Sign);
Line 125:
Line 126:
Line 127: #line default
Line 128: #line hidden
Line 129: WriteLiteral(") ");
Line 130:
Line 131:
Line 132: #line 19 "roo"
Line 133: Write(judge.NiceName);
Line 134:
Line 135:
Line 136: #line default
Line 137: #line hidden
Line 138: WriteLiteral(" / ");
Line 139:
Line 140:
Line 141: #line 19 "roo"
Line 142: Write(judge.Country);
Line 143:
Line 144:
Line 145: #line default
Line 146: #line hidden
Line 147: WriteLiteral("</li>\r\n");
Line 148:
Line 149:
Line 150: #line 20 "roo"
Line 151: }
Line 152:
Line 153:
Line 154: #line default
Line 155: #line hidden
Line 156: WriteLiteral(" </ul>\r\n </div>\r\n </div>\r\n \r\n <div");
Line 157:
Line 158: WriteLiteral(" class=\"panel panel-default\"");
Line 159:
Line 160: WriteLiteral(">\r\n <div");
Line 161:
Line 162: WriteLiteral(" class=\"panel-heading\"");
Line 163:
Line 164: WriteLiteral(">");
Line 165:
Line 166:
Line 167: #line 26 "roo"
Line 168: Write(Translation.Officials);
Line 169:
Line 170:
Line 171: #line default
Line 172: #line hidden
Line 173: WriteLiteral("</div>\r\n <div");
Line 174:
Line 175: WriteLiteral(" class=\"panel-body\"");
Line 176:
Line 177: WriteLiteral(">\r\n <ul");
Line 178:
Line 179: WriteLiteral(" class=\"list-grou fa-lg\"");
Line 180:
Line 181: WriteLiteral(">\r\n");
Line 182:
Line 183:
Line 184: #line 29 "roo"
Line 185:
Line 186:
Line 187: #line default
Line 188: #line hidden
Line 189:
Line 190: #line 29 "roo"
Line 191: foreach (var official in Model.Officials)
Line 192: {
Line 193:
Line 194:
Line 195: #line default
Line 196: #line hidden
Line 197: WriteLiteral(" <li");
Line 198:
Line 199: WriteLiteral(" class=\"list-group-item\"");
Line 200:
Line 201: WriteLiteral(">");
Line 202:
Line 203:
Line 204: #line 31 "roo"
Line 205: Write(official.Official.NiceName);
Line 206:
Line 207:
Line 208: #line default
Line 209: #line hidden
Line 210: WriteLiteral(" (");
Line 211:
Line 212:
Line 213: #line 31 "roo"
Line 214: Write(official.Role.RoleLong);
Line 215:
Line 216:
Line 217: #line default
Line 218: #line hidden
Line 219: WriteLiteral(" / ");
Line 220:
Line 221:
Line 222: #line 31 "roo"
Line 223: Write(official.Official.Country);
Line 224:
Line 225:
Line 226: #line default
Line 227: #line hidden
Line 228: WriteLiteral(")</li>\r\n");
Line 229:
Line 230:
Line 231: #line 32 "roo"
Line 232: }
Line 233:
Line 234:
Line 235: #line default
Line 236: #line hidden
Line 237: WriteLiteral(" </ul>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n");
Line 238:
Line 239: }
Line 240: }
Line 241: }
Line 242: